﻿using AdminSystem.Applications;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace AdminSystem.Write.API.Command.SlaughtersCommand
{
    public class SlaughterCommand : IRequest<ApiResult<object>>
    {
        /// <summary>
        /// 屠宰编号
        /// </summary>
        public int SlaughterId { get; set; }
        /// <summary>
        /// 溯源编号
        /// </summary>
        [StringLength(50)]
        public string TraceabilityId { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        [StringLength(50)]
        public string Batch { get; set; }
        /// <summary>
        /// 到场均重
        /// </summary>
        public int PresentWeight { get; set; }
        /// <summary>
        /// 到场时间
        /// </summary>
        public DateTime PresentData { get; set; }
        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime SlaughterData { get; set; }
        /// <summary>
        /// 相关资质照片
        /// </summary>
        [StringLength(50)]
        public string SlaughterPic { get; set; }
    }
}
